﻿<!--#include file="const.inc"-->
<%
'====================================================================
' 感谢使用晴天3G智能建站系统..
' 作者:梁永强.QQ:766750857
' 官方网址:wap.qt3g.com
' 声明:软件版权归作者所有,没有经过作者本人同意不得非法破解和传播本程序
'====================================================================
%>

<%
	dim Rs_1,Sql_1,bnid,act,str
        bnid=Request.QueryString("id")
	if bnid="" then bnid=1
	if not isnumeric(bnid) then bnid=1
	bnid=clng(bnid)        
        act=Request.QueryString("act")
select case v
case "0"
we0="<br/>"
hr="----------<br/>"
%>
<card title="开通空间"><p align="<%=qingtian.px%>">
<%
case "1"
hr=""
zi="<span style=""color:#FF5500"">"
zi0="</span>"
we="<div class=""footer"">"
sou="<div class=""block4"">"
dao="<div class=""navi"">"
we0="</div>"
%>
<title>开通空间</title>
</head>
<body>
<!--#include virtual="/css.inc"-->
<%

End Select


		if sid="Null" then Response.Redirect "/login.asp?sid="&sidd&"&url=/user/space.asp?sid="&sidd&""
		qingtian.info
if act=1 then 
str=""&bnid&"tt你好,你的朋友(url=/user/spacev.asp?nid="&qingtian.nid&"&urls=/user/ininfo.asp&sid=[sid])"&session("username")&"(/url)邀请你开通空间![br](url=/user/space.asp?sid=[sid])直接进入我的空间开通(/url)"
qingtian.addnfo(str)
%>
<%=we%>
恭喜,你的邀请短信发送成功!
<%=we0%>
<%
else
if act=2 and bnid<>qingtian.nid then
str=""&bnid&"tt你好,你的朋友"&session("username")&"帮你开通了空间![br]到Ta的(url=/user/spacev.asp?nid="&qingtian.nid&"&urls=/user/ininfo.asp&sid=[sid])空间(/url)打个招呼吧!"
qingtian.addnfo(str)
else
bnid=qingtian.nid
end if
Set Rs_1 = Server.CreateObject("Adodb.Recordset")
		Sql_1 = "select [kongjian] from [qingtian_user] where [id]="&bnid&""
		Rs_1.Open Sql_1,conn,1,3
		if not (rs_1.bof and rs_1.eof) and rs_1("kongjian")<>true then
qingtian.payy("-"&qingtian.bishu) 
			rs_1("kongjian")=true			
			rs_1.update
%>
<%=we%>
恭喜，<%=qingtian.name(bnid)%>开通空间成功！<br/><a href="spacev.asp?nid=<%=bnid%>&amp;sid=<%=sidd%>">进入<%=qingtian.name(bnid)%>的空间</a>
<%=we0%>
<%else
qingtian.err("请不要非法操作")
		end if
		Rs_1.close
             set Rs_1=nothing
end if
%>
<%=hr%>
<%=sou%><a href="fans.asp?sid=<%=sidd%>">我的好友</a>|<a href="shangchen.asp?sid=<%=sidd%>">商场</a>|<a href="chuwu.asp?sid=<%=sidd%>">储物箱</a><%=we0%>
   <%
End Function
%>
